<script setup lang="ts">
const props = defineProps({
  title: {
    type: String,
    default: '',
  },
})
</script>

<template>
  <div class="secondary-card">
    <div class="title">{{ title }}</div>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>

<style scoped lang="scss">
.secondary-card {
  margin: 0 30px;
  box-sizing: border-box;
  box-shadow: rgba(0, 0, 0, 0.14) 0 2px 6px 0;

  .title {
    height: 40px;
    padding-left: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    color: rgb(16, 16, 16);
    font-size: 16px;
    font-family: AlibabaPuHui;
    font-weight: 700;
  }

  .content {
    height: calc(100% - 40px);
  }
}
</style>
